﻿namespace TanzimSaqib.NoBrainer.Sample.DataAccess
{
    //using System;
    //using System.Collections.Generic;
    //using System.ComponentModel.DataAnnotations;

    //[Table("aspnet_Users", Schema = "dbo")]
    //public class User
    //{
    //    [Column("UserId"), Key]
    //    public Guid UserId { get; set; }

    //    [Column("LoweredUserName")]
    //    public string UserName { get; set; }
    //}

    //public class Blog
    //{
    //    public int Id { get; set; }

    //    [Required, MinLength(5), MaxLength(50)]
    //    public string Title { get; set; }

    //    public ICollection<Post> Posts { get; set; }

    //    [Timestamp]
    //    public byte[] RowVersion { get; set; }

    //    public Blog()
    //    {
    //        Posts = new List<Post>();
    //    }
    //}

    //public class Post
    //{
    //    public int Id { get; set; }

    //    [Required, MinLength(5), MaxLength(50)]
    //    public string Title { get; set; }

    //    [Required, MinLength(5)]
    //    public string Content { get; set; }

    //    [Timestamp]
    //    public byte[] RowVersion { get; set; }

    //    public virtual Blog Blog { get; set; }

    //    public ICollection<Tag> Tags { get; set; }
    //    public ICollection<Comment> Comments { get; set; }
    //}

    //public class Tag
    //{
    //    public int Id { get; set; }

    //    [Required, MinLength(5)]
    //    public string Text { get; set; }

    //    public virtual Post Post { get; set; }
    //}

    //public class Comment
    //{
    //    public int Id { get; set; }

    //    [Required, MinLength(5)]
    //    public string Text { get; set; }

    //    public virtual Post Post { get; set; }
    //}
}
